const mog = require("mongoose");
mog.connect("mongodb://localhost/myData");
mog.connection.on("open",()=>{
    console.log("连接成功!");
})
mog.connection.on("error",()=>{
    console.log("连接失败!");
})
module.exports = mog;